home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HITables.xh < prev    next >
Text File  |  1996-05-01  |  39KB  |  1,349 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HITables.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HITable_xh
  11. #define SOM_HITable_xh
  12.  
  13. class HITable;
  14.  
  15. #define HITable_MajorVersion 0
  16. #define HITable_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <HILists.xh>
  22. #include <HITableTypes.h>
  23.  
  24. /* C++ SOM defs */
  25. #include <somcls.xh>
  26. #include <somcm.xh>
  27.  
  28. /* C++ parent defs */
  29. #ifndef SOM_HIPanel_xh
  30. #include <HIPanels.xh>
  31. #endif
  32.  
  33. #ifndef HITable_API
  34. #define HITable_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class SOMClass;
  43. class SOMObject;
  44. class HIWindow;
  45. class HIEmbeddingPanel;
  46.  
  47. /*
  48.  * End of user-defined types.
  49.  */
  50.  
  51. #ifdef OLDIBMSOMAPISUPPORT
  52. #define HITableCClassData HITableClassData
  53. #define HITableNewClass(major,minor) somNewVersionedClassReference(HITable,major,minor)
  54. #endif
  55.  
  56. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  57. #define HITableMetaClass SOMClass
  58.  
  59. #if PRAGMA_ALIGN_SUPPORTED
  60. #  pragma options align=power
  61. #endif
  62.  
  63. /* The API to the HITable class object, and the methods it introduces. */
  64. SOMEXTERN struct HITableClassDataStructure {
  65. #ifdef OLDIBMSOMAPISUPPORT
  66.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  67. #else
  68.     long zero;
  69. #endif
  70.     somStaticClassInfo *sci;
  71.     somDToken        instanceDataToken;
  72.     long reserved [3];
  73.     somMToken InitTable;
  74.     somMToken AddRows;
  75.     somMToken AddColumns;
  76.     somMToken DeleteRow;
  77.     somMToken DeleteColumn;
  78.     somMToken GetExtent;
  79.     somMToken SetItemImage;
  80.     somMToken GetItemImage;
  81.     somMToken SetItemEnabledState;
  82.     somMToken GetItemEnabledState;
  83.     somMToken SetItemSelectedState;
  84.     somMToken GetItemSelectedState;
  85.     somMToken GetSelectedItems;
  86.     somMToken AddItemCollectionItem;
  87.     somMToken GetItemCollectionItemData;
  88.     somMToken RemoveItemCollectionItem;
  89.     somMToken HitTest;
  90.     somMToken GetItemRect;
  91.     somMToken NewItemStorage;
  92.     somMToken DisposeItemStorage;
  93. } SOMDLINK HITableClassData;
  94.  
  95. #if PRAGMA_ALIGN_SUPPORTED
  96. #  pragma options align=reset
  97. #endif
  98.  
  99. #if !defined(HITable_Class_Source) && !defined(SOM_Module_hitables_Source)
  100. #if PRAGMA_IMPORT_SUPPORTED
  101. #pragma import list HITableClassData
  102. #endif
  103. #endif
  104.  
  105.  
  106. /*
  107.  * -- Typedefs for HITable Method Procedures
  108.  */
  109. SOMEXTERN {
  110. typedef OSStatus   (* SOMLINK somTD_HITable_InitTable)(HITable *somSelf, Environment *ev,
  111.         RefLabel* identifier,
  112.         HIWindow* window,
  113.         Rect* bounds,
  114.         HIItemStorage* itemStorage);
  115. typedef OSStatus   (* SOMLINK somTD_HITable_AddRows)(HITable *somSelf, Environment *ev,
  116.         HIItemIndex rowIndex,
  117.         UInt32 numItems);
  118. typedef OSStatus   (* SOMLINK somTD_HITable_AddColumns)(HITable *somSelf, Environment *ev,
  119.         HIItemIndex columnIndex,
  120.         UInt32 numItems);
  121. typedef OSStatus   (* SOMLINK somTD_HITable_DeleteRow)(HITable *somSelf, Environment *ev,
  122.         HIItemIndex rowIndex);
  123. typedef OSStatus   (* SOMLINK somTD_HITable_DeleteColumn)(HITable *somSelf, Environment *ev,
  124.         HIItemIndex columnIndex);
  125. typedef OSStatus   (* SOMLINK somTD_HITable_GetExtent)(HITable *somSelf, Environment *ev,
  126.         HIItemIndex* rowIndex,
  127.         HIItemIndex* columnIndex);
  128. typedef OSStatus   (* SOMLINK somTD_HITable_SetItemImage)(HITable *somSelf, Environment *ev,
  129.         HIItemIndex rowIndex,
  130.         HIItemIndex columnIndex,
  131.         ConstHIImageRef imageRef,
  132.         HIAdoptionFlags imageAdoptionFlags);
  133. typedef OSStatus   (* SOMLINK somTD_HITable_GetItemImage)(HITable *somSelf, Environment *ev,
  134.         HIItemIndex rowIndex,
  135.         HIItemIndex columnIndex,
  136.         HIImageRef* imageRefPtr);
  137. typedef OSStatus   (* SOMLINK somTD_HITable_SetItemEnabledState)(HITable *somSelf, Environment *ev,
  138.         HIItemIndex rowIndex,
  139.         HIItemIndex columnIndex,
  140.         HIItemState enableState);
  141. typedef HIItemState   (* SOMLINK somTD_HITable_GetItemEnabledState)(HITable *somSelf, Environment *ev,
  142.         HIItemIndex rowIndex,
  143.         HIItemIndex columnIndex);
  144. typedef OSStatus   (* SOMLINK somTD_HITable_SetItemSelectedState)(HITable *somSelf, Environment *ev,
  145.         HIItemIndex rowIndex,
  146.         HIItemIndex columnIndex,
  147.         HIItemState selectedState);
  148. typedef HIItemState   (* SOMLINK somTD_HITable_GetItemSelectedState)(HITable *somSelf, Environment *ev,
  149.         HIItemIndex rowIndex,
  150.         HIItemIndex columnIndex);
  151. typedef OSStatus   (* SOMLINK somTD_HITable_GetSelectedItems)(HITable *somSelf, Environment *ev,
  152.         UInt32 requestedCount,
  153.         UInt32* actualCount,
  154.         HICellCoordinate* cellArray);
  155. typedef OSStatus   (* SOMLINK somTD_HITable_AddItemCollectionItem)(HITable *somSelf, Environment *ev,
  156.         HIItemIndex rowIndex,
  157.         HIItemIndex columnIndex,
  158.         CollectionTag tag,
  159.         UInt32 inDataSize,
  160.         UInt32* outDataSize,
  161.         void* data);
  162. typedef OSStatus   (* SOMLINK somTD_HITable_GetItemCollectionItemData)(HITable *somSelf, Environment *ev,
  163.         HIItemIndex rowIndex,
  164.         HIItemIndex columnIndex,
  165.         CollectionTag tag,
  166.         ByteCount dataSizeAllowed,
  167.         ByteCount* dataSizeReturned,
  168.         void* data);
  169. typedef OSStatus   (* SOMLINK somTD_HITable_RemoveItemCollectionItem)(HITable *somSelf, Environment *ev,
  170.         HIItemIndex rowIndex,
  171.         HIItemIndex columnIndex,
  172.         CollectionTag tag);
  173.  
  174. /*
  175.  * -- Typedefs for Inherited Methods
  176.  */
  177. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HITable_GetEmbeddingParent)(HITable *somSelf, Environment *ev);
  178. typedef OSStatus   (* SOMLINK somTD_HITable_InitPanel)(HITable *somSelf, Environment *ev,
  179.         RefLabel* identifier,
  180.         HIWindow* window,
  181.         Rect* bounds);
  182. typedef OSStatus   (* SOMLINK somTD_HITable_RegisterInterestInAppleEvent)(HITable *somSelf, Environment *ev,
  183.         AEHandlerTableRef table,
  184.         AEEventClass eventClass,
  185.         AEEventID eventID,
  186.         HIEventRoutingType eventRouting);
  187. typedef boolean   (* SOMLINK somTD_HITable_HasValidContent)(HITable *somSelf, Environment *ev);
  188. typedef OSStatus   (* SOMLINK somTD_HITable_GetDeepCollectionItemData)(HITable *somSelf, Environment *ev,
  189.         CollectionTag tag,
  190.         SInt32 id,
  191.         ByteCount sizeAllowed,
  192.         ByteCount* sizeReturned,
  193.         void* itemData);
  194. typedef HIWindow*   (* SOMLINK somTD_HITable_GetWindow)(HITable *somSelf, Environment *ev);
  195. typedef CGrafPtr   (* SOMLINK somTD_HITable_GetPort)(HITable *somSelf, Environment *ev);
  196. typedef void   (* SOMLINK somTD_HITable_GetRefLabel)(HITable *somSelf, Environment *ev,
  197.         RefLabel* identifier);
  198. typedef Collection   (* SOMLINK somTD_HITable_GetCollection)(HITable *somSelf, Environment *ev);
  199. typedef OSStatus   (* SOMLINK somTD_HITable_Init)(HITable *somSelf, Environment *ev,
  200.         RefLabel* identifier,
  201.         Rect* boundingRect);
  202. typedef void   (* SOMLINK somTD_HITable_Terminate)(HITable *somSelf, Environment *ev);
  203. typedef HIObject*   (* SOMLINK somTD_HITable_Clone)(HITable *somSelf, Environment *ev);
  204. typedef void   (* SOMLINK somTD_HITable_Release)(HITable *somSelf, Environment *ev);
  205. typedef ItemCount   (* SOMLINK somTD_HITable_GetOwnerCount)(HITable *somSelf, Environment *ev);
  206. typedef OSStatus   (* SOMLINK somTD_HITable_InitFromAERecord)(HITable *somSelf, Environment *ev,
  207.         AESubDesc* baseInitializerData,
  208.         AESubDesc* initializerDataForClass,
  209.         HIAERecordDataFormat dataFormat);
  210. typedef OSStatus   (* SOMLINK somTD_HITable_WriteToAERecord)(HITable *somSelf, Environment *ev,
  211.         AERecord* dataForSubclass,
  212.         AERecord* objectData,
  213.         HIAERecordDataFormat dataFormat);
  214. typedef void   (* SOMLINK somTD_HITable_CalculateOptimalSize)(HITable *somSelf, Environment *ev,
  215.         SInt16* optimalWidth,
  216.         SInt16* optimalHeight);
  217. typedef void   (* SOMLINK somTD_HITable_GetBoundingRect)(HITable *somSelf, Environment *ev,
  218.         HICoordinateSystem coordinate,
  219.         Rect* boundingRect);
  220. typedef void   (* SOMLINK somTD_HITable_SetBoundingRect)(HITable *somSelf, Environment *ev,
  221.         HICoordinateSystem coordinate,
  222.         Rect* newBoundingRect);
  223. typedef void   (* SOMLINK somTD_HITable_SetPosition)(HITable *somSelf, Environment *ev,
  224.         HICoordinateSystem coordinate,
  225.         Point* newPosition);
  226. typedef void   (* SOMLINK somTD_HITable_SetSize)(HITable *somSelf, Environment *ev,
  227.         SInt16 width,
  228.         SInt16 height);
  229. typedef void   (* SOMLINK somTD_HITable_GetUpdateRect)(HITable *somSelf, Environment *ev,
  230.         HICoordinateSystem coordinate,
  231.         Rect* updateRect);
  232. typedef void   (* SOMLINK somTD_HITable_Enable)(HITable *somSelf, Environment *ev);
  233. typedef void   (* SOMLINK somTD_HITable_Disable)(HITable *somSelf, Environment *ev);
  234. typedef boolean   (* SOMLINK somTD_HITable_IsEnabled)(HITable *somSelf, Environment *ev);
  235. typedef void   (* SOMLINK somTD_HITable_Show)(HITable *somSelf, Environment *ev);
  236. typedef void   (* SOMLINK somTD_HITable_Hide)(HITable *somSelf, Environment *ev);
  237. typedef boolean   (* SOMLINK somTD_HITable_IsVisible)(HITable *somSelf, Environment *ev);
  238. typedef OSStatus   (* SOMLINK somTD_HITable_HandleAppleEvent)(HITable *somSelf, Environment *ev,
  239.         AEEventClass eventClass,
  240.         AEEventID eventID,
  241.         AppleEvent* theEvent,
  242.         AppleEvent* reply,
  243.         AEHandlerTableRef handlerTableRef);
  244. typedef OSStatus   (* SOMLINK somTD_HITable_HandleActivate)(HITable *somSelf, Environment *ev,
  245.         AppleEvent* theEvent,
  246.         AppleEvent* reply,
  247.         AEHandlerTableRef handlerTableRef);
  248. typedef OSStatus   (* SOMLINK somTD_HITable_HandleDeactivate)(HITable *somSelf, Environment *ev,
  249.         AppleEvent* theEvent,
  250.         AppleEvent* reply,
  251.         AEHandlerTableRef handlerTableRef);
  252. typedef OSStatus   (* SOMLINK somTD_HITable_HandleNavigation)(HITable *somSelf, Environment *ev,
  253.         SInt8 key,
  254.         SInt8 keyCode,
  255.         EventModifiers modifiers,
  256.         AppleEvent* theEvent,
  257.         AppleEvent* reply,
  258.         AEHandlerTableRef handlerTableRef);
  259. typedef OSStatus   (* SOMLINK somTD_HITable_HandleMouseDownInContent)(HITable *somSelf, Environment *ev,
  260.         Point* portLocalWhere,
  261.         EventModifiers modifiers,
  262.         AppleEvent* theEvent,
  263.         AppleEvent* reply,
  264.         AEHandlerTableRef handlerTableRef);
  265. typedef OSStatus   (* SOMLINK somTD_HITable_HandleMouseMovedInContent)(HITable *somSelf, Environment *ev,
  266.         Point* portLocalWhere,
  267.         EventModifiers modifiers,
  268.         AppleEvent* theEvent,
  269.         AppleEvent* reply,
  270.         AEHandlerTableRef handlerTableRef);
  271. typedef OSStatus   (* SOMLINK somTD_HITable_HandleMouseStoppedMovingInContent)(HITable *somSelf, Environment *ev,
  272.         Point* portLocalWhere,
  273.         EventModifiers modifiers,
  274.         AppleEvent* theEvent,
  275.         AppleEvent* reply,
  276.         AEHandlerTableRef handlerTableRef);
  277. typedef OSStatus   (* SOMLINK somTD_HITable_HandleMouseUpInContent)(HITable *somSelf, Environment *ev,
  278.         Point* portLocalWhere,
  279.         EventModifiers modifiers,
  280.         AppleEvent* theEvent,
  281.         AppleEvent* reply,
  282.         AEHandlerTableRef handlerTableRef);
  283. typedef void   (* SOMLINK somTD_HITable_TakeUserInputFocus)(HITable *somSelf, Environment *ev);
  284. typedef void   (* SOMLINK somTD_HITable_ReleaseUserInputFocus)(HITable *somSelf, Environment *ev);
  285. typedef boolean   (* SOMLINK somTD_HITable_HasUserInputFocus)(HITable *somSelf, Environment *ev);
  286. typedef boolean   (* SOMLINK somTD_HITable_CanReleaseUserInputFocus)(HITable *somSelf, Environment *ev);
  287. typedef void   (* SOMLINK somTD_HITable_SetUserInputFocusFlags)(HITable *somSelf, Environment *ev,
  288.         HIUserInputFocusFlags flags);
  289. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HITable_GetUserInputFocusFlags)(HITable *somSelf, Environment *ev);
  290. typedef OSStatus   (* SOMLINK somTD_HITable_SetTitle)(HITable *somSelf, Environment *ev,
  291.         ConstHIImageRef title,
  292.         HIAdoptionFlags disposalAdoptionFlags);
  293. typedef OSStatus   (* SOMLINK somTD_HITable_GetTitle)(HITable *somSelf, Environment *ev,
  294.         HIImageRef* title);
  295. typedef void   (* SOMLINK somTD_HITable_Draw)(HITable *somSelf, Environment *ev,
  296.         CGrafPtr whichPort,
  297.         RgnHandle drawRgn);
  298. typedef void   (* SOMLINK somTD_HITable_Erase)(HITable *somSelf, Environment *ev,
  299.         CGrafPtr whichPort,
  300.         RgnHandle eraseRgn);
  301. typedef void   (* SOMLINK somTD_HITable_Invalidate)(HITable *somSelf, Environment *ev);
  302. typedef HIDrawingMode   (* SOMLINK somTD_HITable_GetDrawingMode)(HITable *somSelf, Environment *ev);
  303. typedef void   (* SOMLINK somTD_HITable_SetDrawingMode)(HITable *somSelf, Environment *ev,
  304.         HIDrawingMode drawingMode);
  305. typedef void   (* SOMLINK somTD_HITable_SetBackgroundPattern)(HITable *somSelf, Environment *ev,
  306.         PixPatHandle backgroundPattern);
  307. typedef PixPatHandle   (* SOMLINK somTD_HITable_GetBackgroundPattern)(HITable *somSelf, Environment *ev);
  308. typedef void   (* SOMLINK somTD_HITable_Cut)(HITable *somSelf, Environment *ev);
  309. typedef void   (* SOMLINK somTD_HITable_Copy)(HITable *somSelf, Environment *ev);
  310. typedef void   (* SOMLINK somTD_HITable_Paste)(HITable *somSelf, Environment *ev);
  311. typedef void   (* SOMLINK somTD_HITable_Clear)(HITable *somSelf, Environment *ev);
  312. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HITable_GetClipboardSupportFlags)(HITable *somSelf, Environment *ev);
  313. typedef OSStatus   (* SOMLINK somTD_HITable_AddStateChangeCallback)(HITable *somSelf, Environment *ev,
  314.         HIStateChangeCallbackProcPtr changedStateCallback,
  315.         HIStateChangeCallbackRef* newCallbackRef);
  316. typedef OSStatus   (* SOMLINK somTD_HITable_RemoveStateChangeCallback)(HITable *somSelf, Environment *ev,
  317.         HIStateChangeCallbackRef callbackRefToRemove);
  318. typedef OSStatus   (* SOMLINK somTD_HITable_GetHIObjectFromRefLabel)(Environment *ev,
  319.         RefLabel* identifier,
  320.         ItemCount requestedObjects,
  321.         ItemCount* totalObjects,
  322.         HIObject** theObjects);
  323. typedef OSStatus   (* SOMLINK somTD_HITable_GetNewHIObject)(Environment *ev,
  324.         AESubDesc* objectInitializer,
  325.         HIObject** newObject);
  326. typedef OSStatus   (* SOMLINK somTD_HITable_GetNewHIObjectFromResource)(Environment *ev,
  327.         ResID objectInitializerResourceID,
  328.         HIObject** newObject);
  329. typedef void   (* SOMLINK somTD_HITable_DrawContent)(HITable *somSelf, Environment *ev,
  330.         CGrafPtr whichPort,
  331.         RgnHandle drawRgn);
  332. typedef void   (* SOMLINK somTD_HITable_EraseContent)(HITable *somSelf, Environment *ev,
  333.         CGrafPtr whichPort,
  334.         RgnHandle regionToErase);
  335. typedef void   (* SOMLINK somTD_HITable_TranslatePoint)(HITable *somSelf, Environment *ev,
  336.         HICoordinateSystem translateFrom,
  337.         HICoordinateSystem translateTo,
  338.         Point* sourcePoint,
  339.         Point* translatedPoint);
  340. typedef void   (* SOMLINK somTD_HITable_TranslateRect)(HITable *somSelf, Environment *ev,
  341.         HICoordinateSystem translateFrom,
  342.         HICoordinateSystem translateTo,
  343.         Rect* sourceRect,
  344.         Rect* translatedRect);
  345. typedef void   (* SOMLINK somTD_HITable_StateChanged)(HITable *somSelf, Environment *ev,
  346.         HIStateChangeCodeCreator selectorCreator,
  347.         HIStateChangeCode changedCode);
  348. typedef void   (* SOMLINK somTD_HITable_SetClipboardSupportFlags)(HITable *somSelf, Environment *ev,
  349.         HIClipboardSupportFlags flags);
  350. typedef OSStatus   (* SOMLINK somTD_HITable_Verify)(HITable *somSelf, Environment *ev);
  351. typedef void   (* SOMLINK somTD_HITable_somInit)(HITable *somSelf);
  352. typedef void   (* SOMLINK somTD_HITable_somUninit)(HITable *somSelf);
  353. typedef SOMObject*   (* SOMLINK somTD_HITable_somDuplicateReference)(HITable *somSelf);
  354. typedef boolean   (* SOMLINK somTD_HITable_somCompareReference)(HITable *somSelf,
  355.         SOMObject* anObject);
  356. typedef SOMObject*   (* SOMLINK somTD_HITable_somRelease)(HITable *somSelf);
  357. typedef void   (* SOMLINK somTD_HITable_somFree)(HITable *somSelf);
  358. typedef boolean   (* SOMLINK somTD_HITable_somCanDelete)(HITable *somSelf);
  359. typedef SOMClass*   (* SOMLINK somTD_HITable_somGetClass)(HITable *somSelf);
  360. typedef corbastring   (* SOMLINK somTD_HITable_somGetClassName)(HITable *somSelf);
  361. typedef long   (* SOMLINK somTD_HITable_somGetSize)(HITable *somSelf);
  362. typedef boolean   (* SOMLINK somTD_HITable_somIsA)(HITable *somSelf,
  363.         SOMClass* aClassObj);
  364. typedef boolean   (* SOMLINK somTD_HITable_somRespondsTo)(HITable *somSelf,
  365.         somId mId);
  366. typedef boolean   (* SOMLINK somTD_HITable_somIsInstanceOf)(HITable *somSelf,
  367.         SOMClass* aClassObj);
  368. typedef boolean   (* SOMLINK somTD_HITable_somDispatch)(HITable *somSelf,
  369.         somToken* retValue,
  370.         somId methodId,
  371.         va_list ap);
  372. typedef boolean   (* SOMLINK somTD_HITable_somClassDispatch)(HITable *somSelf,
  373.         SOMClass* clsObj,
  374.         somToken* retValue,
  375.         somId methodId,
  376.         va_list ap);
  377. typedef boolean   (* SOMLINK somTD_HITable_somCastObj)(HITable *somSelf,
  378.         SOMClass* cls);
  379. typedef boolean   (* SOMLINK somTD_HITable_somResetObj)(HITable *somSelf);
  380. typedef SOMObject*   (* SOMLINK somTD_HITable_somPrintSelf)(HITable *somSelf);
  381. typedef void   (* SOMLINK somTD_HITable_somDumpSelf)(HITable *somSelf,
  382.         long level);
  383. typedef void   (* SOMLINK somTD_HITable_somDumpSelfInt)(HITable *somSelf,
  384.         long level);
  385. }
  386.  
  387. #endif /* HITable_API */
  388.  
  389.  
  390. /*
  391.  * -- This emitter treats Method Tokens as Thunks by default.
  392.  * -- Use the sc modifier "nothunks" to change this default
  393.  */
  394. #undef somresolve_
  395. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  396.  
  397. /*
  398.  * -- The C++ Wrapper Class for HITable
  399.  */
  400. class HITable : public HIPanel
  401. {
  402. public:
  403.  
  404. // HITable::new registers use of the class object, and then uses somNew
  405. // to allocate memory and load the object method table pointer. 
  406. void *operator new(size_t size)
  407. {
  408.     SOM_IgnoreWarning(size);
  409.     // Allocate memory using the default allocator for HITable, and
  410.     // clear mem & set method table pointer, call basic initialization
  411.     return (void*) somNewObject(HITable);
  412. }
  413.  
  414. // HITable::delete uses the default deallocator for the object's class.
  415. void operator delete(void * obj)
  416. {
  417.     if (obj) {
  418.         SOM_Resolve(obj,SOMObject,somFree)
  419.            ( (SOMObject*) obj );
  420.     }
  421. }
  422.  
  423. /* method: InitTable */
  424. OSStatus   InitTable(Environment *ev,
  425.         RefLabel* identifier,
  426.         HIWindow* window,
  427.         Rect* bounds,
  428.         HIItemStorage* itemStorage)
  429. {
  430.    return SOM_ResolveD(this,HITable,HITable,InitTable)
  431.     (this,ev,identifier,window,bounds,itemStorage);
  432. }
  433.  
  434. /* method: AddRows */
  435. OSStatus   AddRows(Environment *ev,
  436.         HIItemIndex rowIndex,
  437.         UInt32 numItems)
  438. {
  439.    return SOM_ResolveD(this,HITable,HITable,AddRows)
  440.     (this,ev,rowIndex,numItems);
  441. }
  442.  
  443. /* method: AddColumns */
  444. OSStatus   AddColumns(Environment *ev,
  445.         HIItemIndex columnIndex,
  446.         UInt32 numItems)
  447. {
  448.    return SOM_ResolveD(this,HITable,HITable,AddColumns)
  449.     (this,ev,columnIndex,numItems);
  450. }
  451.  
  452. /* method: DeleteRow */
  453. OSStatus   DeleteRow(Environment *ev,
  454.         HIItemIndex rowIndex)
  455. {
  456.    return SOM_ResolveD(this,HITable,HITable,DeleteRow)
  457.     (this,ev,rowIndex);
  458. }
  459.  
  460. /* method: DeleteColumn */
  461. OSStatus   DeleteColumn(Environment *ev,
  462.         HIItemIndex columnIndex)
  463. {
  464.    return SOM_ResolveD(this,HITable,HITable,DeleteColumn)
  465.     (this,ev,columnIndex);
  466. }
  467.  
  468. /* method: GetExtent */
  469. OSStatus   GetExtent(Environment *ev,
  470.         HIItemIndex* rowIndex,
  471.         HIItemIndex* columnIndex)
  472. {
  473.    return SOM_ResolveD(this,HITable,HITable,GetExtent)
  474.     (this,ev,rowIndex,columnIndex);
  475. }
  476.  
  477. /* method: SetItemImage */
  478. OSStatus   SetItemImage(Environment *ev,
  479.         HIItemIndex rowIndex,
  480.         HIItemIndex columnIndex,
  481.         ConstHIImageRef imageRef,
  482.         HIAdoptionFlags imageAdoptionFlags)
  483. {
  484.    return SOM_ResolveD(this,HITable,HITable,SetItemImage)
  485.     (this,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags);
  486. }
  487.  
  488. /* method: GetItemImage */
  489. OSStatus   GetItemImage(Environment *ev,
  490.         HIItemIndex rowIndex,
  491.         HIItemIndex columnIndex,
  492.         HIImageRef* imageRefPtr)
  493. {
  494.    return SOM_ResolveD(this,HITable,HITable,GetItemImage)
  495.     (this,ev,rowIndex,columnIndex,imageRefPtr);
  496. }
  497.  
  498. /* method: SetItemEnabledState */
  499. OSStatus   SetItemEnabledState(Environment *ev,
  500.         HIItemIndex rowIndex,
  501.         HIItemIndex columnIndex,
  502.         HIItemState enableState)
  503. {
  504.    return SOM_ResolveD(this,HITable,HITable,SetItemEnabledState)
  505.     (this,ev,rowIndex,columnIndex,enableState);
  506. }
  507.  
  508. /* method: GetItemEnabledState */
  509. HIItemState   GetItemEnabledState(Environment *ev,
  510.         HIItemIndex rowIndex,
  511.         HIItemIndex columnIndex)
  512. {
  513.    return SOM_ResolveD(this,HITable,HITable,GetItemEnabledState)
  514.     (this,ev,rowIndex,columnIndex);
  515. }
  516.  
  517. /* method: SetItemSelectedState */
  518. OSStatus   SetItemSelectedState(Environment *ev,
  519.         HIItemIndex rowIndex,
  520.         HIItemIndex columnIndex,
  521.         HIItemState selectedState)
  522. {
  523.    return SOM_ResolveD(this,HITable,HITable,SetItemSelectedState)
  524.     (this,ev,rowIndex,columnIndex,selectedState);
  525. }
  526.  
  527. /* method: GetItemSelectedState */
  528. HIItemState   GetItemSelectedState(Environment *ev,
  529.         HIItemIndex rowIndex,
  530.         HIItemIndex columnIndex)
  531. {
  532.    return SOM_ResolveD(this,HITable,HITable,GetItemSelectedState)
  533.     (this,ev,rowIndex,columnIndex);
  534. }
  535.  
  536. /* method: GetSelectedItems */
  537. OSStatus   GetSelectedItems(Environment *ev,
  538.         UInt32 requestedCount,
  539.         UInt32* actualCount,
  540.         HICellCoordinate* cellArray)
  541. {
  542.    return SOM_ResolveD(this,HITable,HITable,GetSelectedItems)
  543.     (this,ev,requestedCount,actualCount,cellArray);
  544. }
  545.  
  546. /* method: AddItemCollectionItem */
  547. OSStatus   AddItemCollectionItem(Environment *ev,
  548.         HIItemIndex rowIndex,
  549.         HIItemIndex columnIndex,
  550.         CollectionTag tag,
  551.         UInt32 inDataSize,
  552.         UInt32* outDataSize,
  553.         void* data)
  554. {
  555.    return SOM_ResolveD(this,HITable,HITable,AddItemCollectionItem)
  556.     (this,ev,rowIndex,columnIndex,tag,inDataSize,outDataSize,data);
  557. }
  558.  
  559. /* method: GetItemCollectionItemData */
  560. OSStatus   GetItemCollectionItemData(Environment *ev,
  561.         HIItemIndex rowIndex,
  562.         HIItemIndex columnIndex,
  563.         CollectionTag tag,
  564.         ByteCount dataSizeAllowed,
  565.         ByteCount* dataSizeReturned,
  566.         void* data)
  567. {
  568.    return SOM_ResolveD(this,HITable,HITable,GetItemCollectionItemData)
  569.     (this,ev,rowIndex,columnIndex,tag,dataSizeAllowed,dataSizeReturned,data);
  570. }
  571.  
  572. /* method: RemoveItemCollectionItem */
  573. OSStatus   RemoveItemCollectionItem(Environment *ev,
  574.         HIItemIndex rowIndex,
  575.         HIItemIndex columnIndex,
  576.         CollectionTag tag)
  577. {
  578.    return SOM_ResolveD(this,HITable,HITable,RemoveItemCollectionItem)
  579.     (this,ev,rowIndex,columnIndex,tag);
  580. }
  581.  
  582.  
  583. /*
  584.  * -- Inherited methods
  585.  */
  586. /* method: GetEmbeddingParent */
  587. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  588. {
  589.    return SOM_ResolveD(this,HITable,HIPanel,GetEmbeddingParent)
  590.     (this,ev);
  591. }
  592.  
  593. /* method: InitPanel */
  594. OSStatus   InitPanel(Environment *ev,
  595.         RefLabel* identifier,
  596.         HIWindow* window,
  597.         Rect* bounds)
  598. {
  599.    return SOM_ResolveD(this,HITable,HIPanel,InitPanel)
  600.     (this,ev,identifier,window,bounds);
  601. }
  602.  
  603. /* method: RegisterInterestInAppleEvent */
  604. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  605.         AEHandlerTableRef table,
  606.         AEEventClass eventClass,
  607.         AEEventID eventID,
  608.         HIEventRoutingType eventRouting)
  609. {
  610.    return SOM_ResolveD(this,HITable,HIPanel,RegisterInterestInAppleEvent)
  611.     (this,ev,table,eventClass,eventID,eventRouting);
  612. }
  613.  
  614. /* method: HasValidContent */
  615. boolean   HasValidContent(Environment *ev)
  616. {
  617.    return SOM_ResolveD(this,HITable,HIPanel,HasValidContent)
  618.     (this,ev);
  619. }
  620.  
  621. /* method: GetDeepCollectionItemData */
  622. OSStatus   GetDeepCollectionItemData(Environment *ev,
  623.         CollectionTag tag,
  624.         SInt32 id,
  625.         ByteCount sizeAllowed,
  626.         ByteCount* sizeReturned,
  627.         void* itemData)
  628. {
  629.    return SOM_ResolveD(this,HITable,HIPanel,GetDeepCollectionItemData)
  630.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  631. }
  632.  
  633. /* method: GetWindow */
  634. HIWindow*   GetWindow(Environment *ev)
  635. {
  636.    return SOM_ResolveD(this,HITable,HIObject,GetWindow)
  637.     (this,ev);
  638. }
  639.  
  640. /* method: GetPort */
  641. CGrafPtr   GetPort(Environment *ev)
  642. {
  643.    return SOM_ResolveD(this,HITable,HIObject,GetPort)
  644.     (this,ev);
  645. }
  646.  
  647. /* method: GetRefLabel */
  648. void   GetRefLabel(Environment *ev,
  649.         RefLabel* identifier)
  650. {
  651.    SOM_ResolveD(this,HITable,HIObject,GetRefLabel)
  652.     (this,ev,identifier);
  653. }
  654.  
  655. /* method: GetCollection */
  656. Collection   GetCollection(Environment *ev)
  657. {
  658.    return SOM_ResolveD(this,HITable,HIObject,GetCollection)
  659.     (this,ev);
  660. }
  661.  
  662. /* method: Init */
  663. OSStatus   Init(Environment *ev,
  664.         RefLabel* identifier,
  665.         Rect* boundingRect)
  666. {
  667.    return SOM_ResolveD(this,HITable,HIObject,Init)
  668.     (this,ev,identifier,boundingRect);
  669. }
  670.  
  671. /* method: Terminate */
  672. void   Terminate(Environment *ev)
  673. {
  674.    SOM_ResolveD(this,HITable,HIObject,Terminate)
  675.     (this,ev);
  676. }
  677.  
  678. /* method: Clone */
  679. HIObject*   Clone(Environment *ev)
  680. {
  681.    return SOM_ResolveD(this,HITable,HIObject,Clone)
  682.     (this,ev);
  683. }
  684.  
  685. /* method: Release */
  686. void   Release(Environment *ev)
  687. {
  688.    SOM_ResolveD(this,HITable,HIObject,Release)
  689.     (this,ev);
  690. }
  691.  
  692. /* method: GetOwnerCount */
  693. ItemCount   GetOwnerCount(Environment *ev)
  694. {
  695.    return SOM_ResolveD(this,HITable,HIObject,GetOwnerCount)
  696.     (this,ev);
  697. }
  698.  
  699. /* method: InitFromAERecord */
  700. OSStatus   InitFromAERecord(Environment *ev,
  701.         AESubDesc* baseInitializerData,
  702.         AESubDesc* initializerDataForClass,
  703.         HIAERecordDataFormat dataFormat)
  704. {
  705.    return SOM_ResolveD(this,HITable,HIObject,InitFromAERecord)
  706.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  707. }
  708.  
  709. /* method: WriteToAERecord */
  710. OSStatus   WriteToAERecord(Environment *ev,
  711.         AERecord* dataForSubclass,
  712.         AERecord* objectData,
  713.         HIAERecordDataFormat dataFormat)
  714. {
  715.    return SOM_ResolveD(this,HITable,HIObject,WriteToAERecord)
  716.     (this,ev,dataForSubclass,objectData,dataFormat);
  717. }
  718.  
  719. /* method: CalculateOptimalSize */
  720. void   CalculateOptimalSize(Environment *ev,
  721.         SInt16* optimalWidth,
  722.         SInt16* optimalHeight)
  723. {
  724.    SOM_ResolveD(this,HITable,HIObject,CalculateOptimalSize)
  725.     (this,ev,optimalWidth,optimalHeight);
  726. }
  727.  
  728. /* method: GetBoundingRect */
  729. void   GetBoundingRect(Environment *ev,
  730.         HICoordinateSystem coordinate,
  731.         Rect* boundingRect)
  732. {
  733.    SOM_ResolveD(this,HITable,HIObject,GetBoundingRect)
  734.     (this,ev,coordinate,boundingRect);
  735. }
  736.  
  737. /* method: SetBoundingRect */
  738. void   SetBoundingRect(Environment *ev,
  739.         HICoordinateSystem coordinate,
  740.         Rect* newBoundingRect)
  741. {
  742.    SOM_ResolveD(this,HITable,HIObject,SetBoundingRect)
  743.     (this,ev,coordinate,newBoundingRect);
  744. }
  745.  
  746. /* method: SetPosition */
  747. void   SetPosition(Environment *ev,
  748.         HICoordinateSystem coordinate,
  749.         Point* newPosition)
  750. {
  751.    SOM_ResolveD(this,HITable,HIObject,SetPosition)
  752.     (this,ev,coordinate,newPosition);
  753. }
  754.  
  755. /* method: SetSize */
  756. void   SetSize(Environment *ev,
  757.         SInt16 width,
  758.         SInt16 height)
  759. {
  760.    SOM_ResolveD(this,HITable,HIObject,SetSize)
  761.     (this,ev,width,height);
  762. }
  763.  
  764. /* method: GetUpdateRect */
  765. void   GetUpdateRect(Environment *ev,
  766.         HICoordinateSystem coordinate,
  767.         Rect* updateRect)
  768. {
  769.    SOM_ResolveD(this,HITable,HIObject,GetUpdateRect)
  770.     (this,ev,coordinate,updateRect);
  771. }
  772.  
  773. /* method: Enable */
  774. void   Enable(Environment *ev)
  775. {
  776.    SOM_ResolveD(this,HITable,HIObject,Enable)
  777.     (this,ev);
  778. }
  779.  
  780. /* method: Disable */
  781. void   Disable(Environment *ev)
  782. {
  783.    SOM_ResolveD(this,HITable,HIObject,Disable)
  784.     (this,ev);
  785. }
  786.  
  787. /* method: IsEnabled */
  788. boolean   IsEnabled(Environment *ev)
  789. {
  790.    return SOM_ResolveD(this,HITable,HIObject,IsEnabled)
  791.     (this,ev);
  792. }
  793.  
  794. /* method: Show */
  795. void   Show(Environment *ev)
  796. {
  797.    SOM_ResolveD(this,HITable,HIObject,Show)
  798.     (this,ev);
  799. }
  800.  
  801. /* method: Hide */
  802. void   Hide(Environment *ev)
  803. {
  804.    SOM_ResolveD(this,HITable,HIObject,Hide)
  805.     (this,ev);
  806. }
  807.  
  808. /* method: IsVisible */
  809. boolean   IsVisible(Environment *ev)
  810. {
  811.    return SOM_ResolveD(this,HITable,HIObject,IsVisible)
  812.     (this,ev);
  813. }
  814.  
  815. /* method: HandleAppleEvent */
  816. OSStatus   HandleAppleEvent(Environment *ev,
  817.         AEEventClass eventClass,
  818.         AEEventID eventID,
  819.         AppleEvent* theEvent,
  820.         AppleEvent* reply,
  821.         AEHandlerTableRef handlerTableRef)
  822. {
  823.    return SOM_ResolveD(this,HITable,HIObject,HandleAppleEvent)
  824.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  825. }
  826.  
  827. /* method: HandleActivate */
  828. OSStatus   HandleActivate(Environment *ev,
  829.         AppleEvent* theEvent,
  830.         AppleEvent* reply,
  831.         AEHandlerTableRef handlerTableRef)
  832. {
  833.    return SOM_ResolveD(this,HITable,HIObject,HandleActivate)
  834.     (this,ev,theEvent,reply,handlerTableRef);
  835. }
  836.  
  837. /* method: HandleDeactivate */
  838. OSStatus   HandleDeactivate(Environment *ev,
  839.         AppleEvent* theEvent,
  840.         AppleEvent* reply,
  841.         AEHandlerTableRef handlerTableRef)
  842. {
  843.    return SOM_ResolveD(this,HITable,HIObject,HandleDeactivate)
  844.     (this,ev,theEvent,reply,handlerTableRef);
  845. }
  846.  
  847. /* method: HandleNavigation */
  848. OSStatus   HandleNavigation(Environment *ev,
  849.         SInt8 key,
  850.         SInt8 keyCode,
  851.         EventModifiers modifiers,
  852.         AppleEvent* theEvent,
  853.         AppleEvent* reply,
  854.         AEHandlerTableRef handlerTableRef)
  855. {
  856.    return SOM_ResolveD(this,HITable,HIObject,HandleNavigation)
  857.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  858. }
  859.  
  860. /* method: HandleMouseDownInContent */
  861. OSStatus   HandleMouseDownInContent(Environment *ev,
  862.         Point* portLocalWhere,
  863.         EventModifiers modifiers,
  864.         AppleEvent* theEvent,
  865.         AppleEvent* reply,
  866.         AEHandlerTableRef handlerTableRef)
  867. {
  868.    return SOM_ResolveD(this,HITable,HIObject,HandleMouseDownInContent)
  869.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  870. }
  871.  
  872. /* method: HandleMouseMovedInContent */
  873. OSStatus   HandleMouseMovedInContent(Environment *ev,
  874.         Point* portLocalWhere,
  875.         EventModifiers modifiers,
  876.         AppleEvent* theEvent,
  877.         AppleEvent* reply,
  878.         AEHandlerTableRef handlerTableRef)
  879. {
  880.    return SOM_ResolveD(this,HITable,HIObject,HandleMouseMovedInContent)
  881.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  882. }
  883.  
  884. /* method: HandleMouseStoppedMovingInContent */
  885. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  886.         Point* portLocalWhere,
  887.         EventModifiers modifiers,
  888.         AppleEvent* theEvent,
  889.         AppleEvent* reply,
  890.         AEHandlerTableRef handlerTableRef)
  891. {
  892.    return SOM_ResolveD(this,HITable,HIObject,HandleMouseStoppedMovingInContent)
  893.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  894. }
  895.  
  896. /* method: HandleMouseUpInContent */
  897. OSStatus   HandleMouseUpInContent(Environment *ev,
  898.         Point* portLocalWhere,
  899.         EventModifiers modifiers,
  900.         AppleEvent* theEvent,
  901.         AppleEvent* reply,
  902.         AEHandlerTableRef handlerTableRef)
  903. {
  904.    return SOM_ResolveD(this,HITable,HIObject,HandleMouseUpInContent)
  905.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  906. }
  907.  
  908. /* method: TakeUserInputFocus */
  909. void   TakeUserInputFocus(Environment *ev)
  910. {
  911.    SOM_ResolveD(this,HITable,HIObject,TakeUserInputFocus)
  912.     (this,ev);
  913. }
  914.  
  915. /* method: ReleaseUserInputFocus */
  916. void   ReleaseUserInputFocus(Environment *ev)
  917. {
  918.    SOM_ResolveD(this,HITable,HIObject,ReleaseUserInputFocus)
  919.     (this,ev);
  920. }
  921.  
  922. /* method: HasUserInputFocus */
  923. boolean   HasUserInputFocus(Environment *ev)
  924. {
  925.    return SOM_ResolveD(this,HITable,HIObject,HasUserInputFocus)
  926.     (this,ev);
  927. }
  928.  
  929. /* method: CanReleaseUserInputFocus */
  930. boolean   CanReleaseUserInputFocus(Environment *ev)
  931. {
  932.    return SOM_ResolveD(this,HITable,HIObject,CanReleaseUserInputFocus)
  933.     (this,ev);
  934. }
  935.  
  936. /* method: SetUserInputFocusFlags */
  937. void   SetUserInputFocusFlags(Environment *ev,
  938.         HIUserInputFocusFlags flags)
  939. {
  940.    SOM_ResolveD(this,HITable,HIObject,SetUserInputFocusFlags)
  941.     (this,ev,flags);
  942. }
  943.  
  944. /* method: GetUserInputFocusFlags */
  945. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  946. {
  947.    return SOM_ResolveD(this,HITable,HIObject,GetUserInputFocusFlags)
  948.     (this,ev);
  949. }
  950.  
  951. /* method: SetTitle */
  952. OSStatus   SetTitle(Environment *ev,
  953.         ConstHIImageRef title,
  954.         HIAdoptionFlags disposalAdoptionFlags)
  955. {
  956.    return SOM_ResolveD(this,HITable,HIObject,SetTitle)
  957.     (this,ev,title,disposalAdoptionFlags);
  958. }
  959.  
  960. /* method: GetTitle */
  961. OSStatus   GetTitle(Environment *ev,
  962.         HIImageRef* title)
  963. {
  964.    return SOM_ResolveD(this,HITable,HIObject,GetTitle)
  965.     (this,ev,title);
  966. }
  967.  
  968. /* method: Draw */
  969. void   Draw(Environment *ev,
  970.         CGrafPtr whichPort,
  971.         RgnHandle drawRgn)
  972. {
  973.    SOM_ResolveD(this,HITable,HIObject,Draw)
  974.     (this,ev,whichPort,drawRgn);
  975. }
  976.  
  977. /* method: Erase */
  978. void   Erase(Environment *ev,
  979.         CGrafPtr whichPort,
  980.         RgnHandle eraseRgn)
  981. {
  982.    SOM_ResolveD(this,HITable,HIObject,Erase)
  983.     (this,ev,whichPort,eraseRgn);
  984. }
  985.  
  986. /* method: Invalidate */
  987. void   Invalidate(Environment *ev)
  988. {
  989.    SOM_ResolveD(this,HITable,HIObject,Invalidate)
  990.     (this,ev);
  991. }
  992.  
  993. /* method: GetDrawingMode */
  994. HIDrawingMode   GetDrawingMode(Environment *ev)
  995. {
  996.    return SOM_ResolveD(this,HITable,HIObject,GetDrawingMode)
  997.     (this,ev);
  998. }
  999.  
  1000. /* method: SetDrawingMode */
  1001. void   SetDrawingMode(Environment *ev,
  1002.         HIDrawingMode drawingMode)
  1003. {
  1004.    SOM_ResolveD(this,HITable,HIObject,SetDrawingMode)
  1005.     (this,ev,drawingMode);
  1006. }
  1007.  
  1008. /* method: SetBackgroundPattern */
  1009. void   SetBackgroundPattern(Environment *ev,
  1010.         PixPatHandle backgroundPattern)
  1011. {
  1012.    SOM_ResolveD(this,HITable,HIObject,SetBackgroundPattern)
  1013.     (this,ev,backgroundPattern);
  1014. }
  1015.  
  1016. /* method: GetBackgroundPattern */
  1017. PixPatHandle   GetBackgroundPattern(Environment *ev)
  1018. {
  1019.    return SOM_ResolveD(this,HITable,HIObject,GetBackgroundPattern)
  1020.     (this,ev);
  1021. }
  1022.  
  1023. /* method: Cut */
  1024. void   Cut(Environment *ev)
  1025. {
  1026.    SOM_ResolveD(this,HITable,HIObject,Cut)
  1027.     (this,ev);
  1028. }
  1029.  
  1030. /* method: Copy */
  1031. void   Copy(Environment *ev)
  1032. {
  1033.    SOM_ResolveD(this,HITable,HIObject,Copy)
  1034.     (this,ev);
  1035. }
  1036.  
  1037. /* method: Paste */
  1038. void   Paste(Environment *ev)
  1039. {
  1040.    SOM_ResolveD(this,HITable,HIObject,Paste)
  1041.     (this,ev);
  1042. }
  1043.  
  1044. /* method: Clear */
  1045. void   Clear(Environment *ev)
  1046. {
  1047.    SOM_ResolveD(this,HITable,HIObject,Clear)
  1048.     (this,ev);
  1049. }
  1050.  
  1051. /* method: GetClipboardSupportFlags */
  1052. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  1053. {
  1054.    return SOM_ResolveD(this,HITable,HIObject,GetClipboardSupportFlags)
  1055.     (this,ev);
  1056. }
  1057.  
  1058. /* method: AddStateChangeCallback */
  1059. OSStatus   AddStateChangeCallback(Environment *ev,
  1060.         HIStateChangeCallbackProcPtr changedStateCallback,
  1061.         HIStateChangeCallbackRef* newCallbackRef)
  1062. {
  1063.    return SOM_ResolveD(this,HITable,HIObject,AddStateChangeCallback)
  1064.     (this,ev,changedStateCallback,newCallbackRef);
  1065. }
  1066.  
  1067. /* method: RemoveStateChangeCallback */
  1068. OSStatus   RemoveStateChangeCallback(Environment *ev,
  1069.         HIStateChangeCallbackRef callbackRefToRemove)
  1070. {
  1071.    return SOM_ResolveD(this,HITable,HIObject,RemoveStateChangeCallback)
  1072.     (this,ev,callbackRefToRemove);
  1073. }
  1074.  
  1075. /* noself procedure: GetHIObjectFromRefLabel */
  1076. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  1077.         RefLabel* identifier,
  1078.         ItemCount requestedObjects,
  1079.         ItemCount* totalObjects,
  1080.         HIObject** theObjects)
  1081. {
  1082. return ((somTD_HITable_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  1083.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  1084. }
  1085.  
  1086. /* noself procedure: GetNewHIObject */
  1087. static OSStatus   GetNewHIObject(Environment *ev,
  1088.         AESubDesc* objectInitializer,
  1089.         HIObject** newObject)
  1090. {
  1091. return ((somTD_HITable_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  1092.     (ev,objectInitializer,newObject);
  1093. }
  1094.  
  1095. /* noself procedure: GetNewHIObjectFromResource */
  1096. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  1097.         ResID objectInitializerResourceID,
  1098.         HIObject** newObject)
  1099. {
  1100. return ((somTD_HITable_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  1101.     (ev,objectInitializerResourceID,newObject);
  1102. }
  1103.  
  1104. /* method: DrawContent */
  1105. void   DrawContent(Environment *ev,
  1106.         CGrafPtr whichPort,
  1107.         RgnHandle drawRgn)
  1108. {
  1109.    SOM_ResolveD(this,HITable,HIObject,DrawContent)
  1110.     (this,ev,whichPort,drawRgn);
  1111. }
  1112.  
  1113. /* method: EraseContent */
  1114. void   EraseContent(Environment *ev,
  1115.         CGrafPtr whichPort,
  1116.         RgnHandle regionToErase)
  1117. {
  1118.    SOM_ResolveD(this,HITable,HIObject,EraseContent)
  1119.     (this,ev,whichPort,regionToErase);
  1120. }
  1121.  
  1122. /* method: TranslatePoint */
  1123. void   TranslatePoint(Environment *ev,
  1124.         HICoordinateSystem translateFrom,
  1125.         HICoordinateSystem translateTo,
  1126.         Point* sourcePoint,
  1127.         Point* translatedPoint)
  1128. {
  1129.    SOM_ResolveD(this,HITable,HIObject,TranslatePoint)
  1130.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  1131. }
  1132.  
  1133. /* method: TranslateRect */
  1134. void   TranslateRect(Environment *ev,
  1135.         HICoordinateSystem translateFrom,
  1136.         HICoordinateSystem translateTo,
  1137.         Rect* sourceRect,
  1138.         Rect* translatedRect)
  1139. {
  1140.    SOM_ResolveD(this,HITable,HIObject,TranslateRect)
  1141.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  1142. }
  1143.  
  1144. /* method: StateChanged */
  1145. void   StateChanged(Environment *ev,
  1146.         HIStateChangeCodeCreator selectorCreator,
  1147.         HIStateChangeCode changedCode)
  1148. {
  1149.    SOM_ResolveD(this,HITable,HIObject,StateChanged)
  1150.     (this,ev,selectorCreator,changedCode);
  1151. }
  1152.  
  1153. /* method: SetClipboardSupportFlags */
  1154. void   SetClipboardSupportFlags(Environment *ev,
  1155.         HIClipboardSupportFlags flags)
  1156. {
  1157.    SOM_ResolveD(this,HITable,HIObject,SetClipboardSupportFlags)
  1158.     (this,ev,flags);
  1159. }
  1160.  
  1161. /* method: Verify */
  1162. OSStatus   Verify(Environment *ev)
  1163. {
  1164.    return SOM_ResolveD(this,HITable,HIObject,Verify)
  1165.     (this,ev);
  1166. }
  1167.  
  1168. /* method: somInit */
  1169. void   somInit()
  1170. {
  1171.    SOM_ResolveD(this,HITable,SOMObject,somInit)
  1172.     (this);
  1173. }
  1174.  
  1175. /* method: somUninit */
  1176. void   somUninit()
  1177. {
  1178.    SOM_ResolveD(this,HITable,SOMObject,somUninit)
  1179.     (this);
  1180. }
  1181.  
  1182. /* method: somDuplicateReference */
  1183. SOMObject*   somDuplicateReference()
  1184. {
  1185.    return SOM_ResolveD(this,HITable,SOMObject,somDuplicateReference)
  1186.     (this);
  1187. }
  1188.  
  1189. /* method: somCompareReference */
  1190. boolean   somCompareReference(SOMObject* anObject)
  1191. {
  1192.    return SOM_ResolveD(this,HITable,SOMObject,somCompareReference)
  1193.     (this,anObject);
  1194. }
  1195.  
  1196. /* method: somRelease */
  1197. SOMObject*   somRelease()
  1198. {
  1199.    return SOM_ResolveD(this,HITable,SOMObject,somRelease)
  1200.     (this);
  1201. }
  1202.  
  1203. /* method: somFree */
  1204. void   somFree()
  1205. {
  1206.    SOM_ResolveD(this,HITable,SOMObject,somFree)
  1207.     (this);
  1208. }
  1209.  
  1210. /* method: somCanDelete */
  1211. boolean   somCanDelete()
  1212. {
  1213.    return SOM_ResolveD(this,HITable,SOMObject,somCanDelete)
  1214.     (this);
  1215. }
  1216.  
  1217. /* method: somGetClass */
  1218. SOMClass*   somGetClass()
  1219. {
  1220.    return SOM_ResolveD(this,HITable,SOMObject,somGetClass)
  1221.     (this);
  1222. }
  1223.  
  1224. /* method: somGetClassName */
  1225. corbastring   somGetClassName()
  1226. {
  1227.    return SOM_ResolveD(this,HITable,SOMObject,somGetClassName)
  1228.     (this);
  1229. }
  1230.  
  1231. /* method: somGetSize */
  1232. long   somGetSize()
  1233. {
  1234.    return SOM_ResolveD(this,HITable,SOMObject,somGetSize)
  1235.     (this);
  1236. }
  1237.  
  1238. /* method: somIsA */
  1239. boolean   somIsA(SOMClass* aClassObj)
  1240. {
  1241.    return SOM_ResolveD(this,HITable,SOMObject,somIsA)
  1242.     (this,aClassObj);
  1243. }
  1244.  
  1245. /* method: somRespondsTo */
  1246. boolean   somRespondsTo(somId mId)
  1247. {
  1248.    return SOM_ResolveD(this,HITable,SOMObject,somRespondsTo)
  1249.     (this,mId);
  1250. }
  1251.  
  1252. /* method: somIsInstanceOf */
  1253. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1254. {
  1255.    return SOM_ResolveD(this,HITable,SOMObject,somIsInstanceOf)
  1256.     (this,aClassObj);
  1257. }
  1258.  
  1259. /* va_list method: somDispatch */
  1260. /* the va_list invocation form */
  1261. boolean   HITable_somDispatch(somToken* retValue,
  1262.         somId methodId,
  1263.         va_list ap)
  1264. {
  1265.    return SOM_ResolveD(this,HITable,SOMObject,somDispatch)
  1266.     (this,retValue,methodId,ap);
  1267. }
  1268.  
  1269. /* the varargs invocation form */
  1270. boolean   somDispatch(somToken* retValue,
  1271.         somId methodId,
  1272.         ...)
  1273. {
  1274.    va_list ap;
  1275.    va_start(ap, methodId);
  1276.       boolean __somResult = 
  1277.       (boolean) SOM_ResolveD(this,HITable,SOMObject,somDispatch)
  1278.     (this,retValue,methodId,ap);
  1279.    va_end(ap);
  1280.    return __somResult;
  1281. }
  1282.  
  1283. /* va_list method: somClassDispatch */
  1284. /* the va_list invocation form */
  1285. boolean   HITable_somClassDispatch(SOMClass* clsObj,
  1286.         somToken* retValue,
  1287.         somId methodId,
  1288.         va_list ap)
  1289. {
  1290.    return SOM_ResolveD(this,HITable,SOMObject,somClassDispatch)
  1291.     (this,clsObj,retValue,methodId,ap);
  1292. }
  1293.  
  1294. /* the varargs invocation form */
  1295. boolean   somClassDispatch(SOMClass* clsObj,
  1296.         somToken* retValue,
  1297.         somId methodId,
  1298.         ...)
  1299. {
  1300.    va_list ap;
  1301.    va_start(ap, methodId);
  1302.       boolean __somResult = 
  1303.       (boolean) SOM_ResolveD(this,HITable,SOMObject,somClassDispatch)
  1304.     (this,clsObj,retValue,methodId,ap);
  1305.    va_end(ap);
  1306.    return __somResult;
  1307. }
  1308.  
  1309. /* method: somCastObj */
  1310. boolean   somCastObj(SOMClass* cls)
  1311. {
  1312.    return SOM_ResolveD(this,HITable,SOMObject,somCastObj)
  1313.     (this,cls);
  1314. }
  1315.  
  1316. /* method: somResetObj */
  1317. boolean   somResetObj()
  1318. {
  1319.    return SOM_ResolveD(this,HITable,SOMObject,somResetObj)
  1320.     (this);
  1321. }
  1322.  
  1323. /* method: somPrintSelf */
  1324. SOMObject*   somPrintSelf()
  1325. {
  1326.    return SOM_ResolveD(this,HITable,SOMObject,somPrintSelf)
  1327.     (this);
  1328. }
  1329.  
  1330. /* method: somDumpSelf */
  1331. void   somDumpSelf(long level)
  1332. {
  1333.    SOM_ResolveD(this,HITable,SOMObject,somDumpSelf)
  1334.     (this,level);
  1335. }
  1336.  
  1337. /* method: somDumpSelfInt */
  1338. void   somDumpSelfInt(long level)
  1339. {
  1340.    SOM_ResolveD(this,HITable,SOMObject,somDumpSelfInt)
  1341.     (this,level);
  1342. }
  1343.  
  1344. };   /* HITable */
  1345.  
  1346.  
  1347.  
  1348. #endif       /* SOM_HITable_xh */
  1349.